package com.imooc.resource;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ClassName: FileUpload
 * @Package: com.imooc.resources
 * @Description:
 * @Date: 2021/7/22 17:43
 * @Author: sunzheng@beiming.com
 */
@Component
@ConfigurationProperties(prefix = "file")
@PropertySource("classpath:file-upload-prod.properties")
public class FileUpload {

  private String imageUserFaceLocation;
  private String imageServerUrl;

  public String getImageUserFaceLocation() {
    return imageUserFaceLocation;
  }

  public void setImageUserFaceLocation(String imageUserFaceLocation) {
    this.imageUserFaceLocation = imageUserFaceLocation;
  }

  public String getImageServerUrl() {
    return imageServerUrl;
  }

  public void setImageServerUrl(String imageServerUrl) {
    this.imageServerUrl = imageServerUrl;
  }
}
